<?php if ($news) { ?>
<div class="box">
  <div class="box-heading box-heading-news"><a href="<?php echo $news_link;?>">Có thể bạn chưa biết</a></div>
  <hr class="border-c" />
  <div class="box-content">
    <?php
      $i = 1; 
      foreach ($news as $news_story) { 
    ?>
    <?php if($i%3 == 1):?>
      <div class="box-news">
    <?php endif;?>
      <div class="news-item">
        <?php if($news_story['image']):?>
          <img class="news-image" src="<?php echo $news_story['image'];?>" />
        <?php endif;?>
        <div class="news-info">
          <?php if ($show_headline) { ?>
          <a href="<?php echo $news_story['href']; ?>"><span class="title"><?php echo $news_story['title']; ?></span></a>
          <?php } ?>
          <Br/>
          <p class="description"><?php echo $news_story['description']; ?></p>
          <Br/>
          <a class="readmore" href="<?php echo $news_story['href']; ?>">>> <?php echo $text_read_more; ?></a>
        </div>
      </div>
    <?php if($i % 3 == 0):?></div><?php endif;?>
    <?php
      $i++; 
    } ?>
    <?php if($i % 3 != 1):?></div><?php endif;?>
  </div>
</div>
<?php } ?>
